package com.xexun.gpstracker.baby.mytree;

/**
 * Created by HY on 2016/11/23.
 */
public class MyNode {


    private String parentId;//父节点id -1表示该节点为根节点

    private String nodeId; //本节点id

    private String name;   //本节点名称

    private int depth;     // 该节点的深度

    private Boolean expand;  //该节点是否处于展开状态

    private  Boolean hasChildren;  //该节点是否有节点

    private  Boolean isGet = false;     //是否获取过数据

    private String portrait;   //头像



    public MyNode(String parentId, String nodeId, String name,int depth,Boolean expand,Boolean hasChildren,String portrait)
    {
        super();
        this.parentId = parentId;
        this.nodeId = nodeId;
        this.depth = depth;
        this.expand = expand;
        this.name = name;
        this.hasChildren = hasChildren;
        this.portrait = portrait;
    }


    public String getPortrait() {
        return portrait;
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait;
    }

    public Boolean getExpand() {
        return expand;
    }

    public Boolean getGet() {
        return isGet;
    }

    public int getDepth() {
        return depth;
    }

    public Boolean getHasChildren() {
        return hasChildren;
    }


    public String getName() {
        return name;
    }


    public String getNodeId() {
        return nodeId;
    }


    public String getParentId() {
        return parentId;
    }


    public void setDepth(int depth) {
        this.depth = depth;
    }


    public void setExpand(Boolean expand) {
        this.expand = expand;
    }


    public void setHasChildren(Boolean hasChildren) {
        this.hasChildren = hasChildren;
    }


    public void setName(String name) {
        this.name = name;
    }


    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }


    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public void setGet(Boolean get) {
        isGet = get;
    }


}
